/**
 * Copyright By Nanjing Fujitsu Nanda Software Technology Co., Ltd
 * 上午10:21:46
 * CoreLocationHisService.java
 * 
 */
package com.fujitsu.nanjing.mobile.service;

import com.fujitsu.nanjing.mobile.dao.CoreLocationHisDao;
import com.fujitsu.nanjing.mobile.model.hibernate.CoreLocationHis;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import javax.annotation.Resource;

/**
 * @author qixb.fnst
 * 
 */
@Service
@Transactional
public class CoreLocationHisService implements BaseService<CoreLocationHis> {
    @Resource
    private CoreLocationHisDao coreLocationHisDao;

    @Override
    public CoreLocationHis find(int id) {
        return coreLocationHisDao.query(CoreLocationHis.class, id);
    }

    @Override
    public CoreLocationHis modify(CoreLocationHis t) {

        return coreLocationHisDao.update(t);
    }

    @Override
    public void delete(CoreLocationHis t) {
        coreLocationHisDao.delete(t);

    }

    @Override
    public CoreLocationHis add(CoreLocationHis t) {
        return coreLocationHisDao.insert(t);
    }

    @Override
    public List<CoreLocationHis> find(String queryString) {
        return coreLocationHisDao.query(queryString);
    }

}
